package com.project.dto.request.cmd;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @date : 15:33 2020/7/2
 */
@Getter
@Setter
@ToString
public class CmdLogin {

    @NotBlank(message = "用户名不可为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6,message = "用户输入的密码长度必须不少于6位")
    private String password;
}
